

function get_upload() {
	return "http://www.wkdzkj.cn/zuul/woke-oss";
}


function getUrl() {
	//	return "http://192.168.0.34:8085";
	return' http://47.92.222.216/zuul/woke-plugin';
	//	return "http://sc3.wkdzkj.cn/zuul/woke-plugin";
//	return "http://www.wkdzkj.cn/zuul/woke-plugin";
}

function getUrl_yangli() {
	//return "http://192.168.0.61:8081";
	return "http://www.wkdzkj.cn:8081";
	//return "http://sc3.wkdzkj.cn:8081";
}

function getUrl_xiaobao() {
	//return "http://192.168.0.49:8081";
	return "http://www.wkdzkj.cn:8081";
	//return "http://192.168.0.49:8081";	
}
//得到时间戳
var createTimestamp = function() {
	return parseInt(new Date().getTime() / 1000) + '';
}
//随机数
var createNonceStr = function() {
	return Math.random().toString(36).substr(2, 15);
};
//获取url参数
function getUrlParam(name) {
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象

	var r = window.location.search.substr(1).match(reg); //匹配目标参数
	if(r != null) return decodeURI(r[2]);
	return null; //返回参数值
};
//减法  精确
function accSub(arg1, arg2) {
	var r1, r2, m, n;
	try {
		r1 = arg1.toString().split(".")[1].length
	} catch(e) {
		r1 = 0
	}
	try {
		r2 = arg2.toString().split(".")[1].length
	} catch(e) {
		r2 = 0
	}
	m = Math.pow(10, Math.max(r1, r2));
	//last modify by deeka 
	//动态控制精度长度 
	n = (r1 >= r2) ? r1 : r2;
	return((arg1 * m - arg2 * m) / m).toFixed(n);
};
//除法精确
function accDiv(arg1, arg2) {
	var t1 = 0,
		t2 = 0,
		r1, r2;
	try {
		t1 = arg1.toString().split(".")[1].length
	} catch(e) {}
	try {
		t2 = arg2.toString().split(".")[1].length
	} catch(e) {}
	with(Math) {
		r1 = Number(arg1.toString().replace(".", ""))
		r2 = Number(arg2.toString().replace(".", ""))
		return(r1 / r2) * pow(10, t2 - t1);
	}
}
//两数相乘
function accMul(arg1, arg2) {
	var m = 0,
		s1 = arg1.toString(),
		s2 = arg2.toString();
	try {
		m += s1.split(".")[1].length
	} catch(e) {}
	try {
		m += s2.split(".")[1].length
	} catch(e) {}
	return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m)
}
//两数相加
function accAdd(arg1, arg2) {
	var r1, r2, m;
	try {
		r1 = arg1.toString().split(".")[1].length
	} catch(e) {
		r1 = 0
	}
	try {
		r2 = arg2.toString().split(".")[1].length
	} catch(e) {
		r2 = 0
	}
	m = Math.pow(10, Math.max(r1, r2))
	return(arg1 * m + arg2 * m) / m
}